﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DocumentManagement.ViewsModels;
using DocumentManagement.Models;
using System.Collections;
using System.ComponentModel;

namespace DocumentManagement.Views
{
    /// <summary>
    /// Interaction logic for ReportDocumentINFromDivision.xaml
    /// </summary>
    public partial class ReportDocumentINFromDivision : Window
    {
        ReportDocumentINFromDivisionViewsModel _reportDocumentINFromDivisionViewsModel;
        public ReportDocumentINFromDivision(int divisionid)
        {
            InitializeComponent();
            _reportDocumentINFromDivisionViewsModel = this.Resources["reportDocumentINFromDivisionViewsModel"] as ReportDocumentINFromDivisionViewsModel;
            //_reportDocumentINFromDivisionViewsModel.MyReceive = receive;
            //_reportDocumentINFromDivisionViewsModel.EntityModels = entity;
            _reportDocumentINFromDivisionViewsModel.MyTextDivionID = divisionid;
            //var aa = _reportDocumentINFromDivisionViewsModel.MyReceive.FormDivisionID.ToString();
           
           
            //MessageBox.Show(divisionid.ToString());

             

        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _reportDocumentINFromDivisionViewsModel.CheckDivisionID();
        }
    }
}
